package com.tedu.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tedu.service.UserService;
import com.tedu.util.UserResult;

@Controller
public class DeleteUserController {
	@Resource
	private UserService service ;
	@RequestMapping("delete.do")
	@ResponseBody
	public UserResult execute(String id,Integer page){
		UserResult result=service.deleteUser(id ,page);
		return  result;
	}
}
